package Boundry;

import Boundry.GenericTools.IPanelOperation;
import Boundry.GenericTools.InputPanel;
import javax.swing.JLabel;
import javax.swing.JButton;
import javax.swing.JTextPane;
import javax.swing.JTable;
import javax.swing.JComboBox;
import javax.swing.JTextField;
import java.awt.Font;
import javax.swing.JPanel;
import javax.swing.border.TitledBorder;
import javax.swing.ImageIcon;
import javax.swing.UIManager;
import net.sourceforge.jdatepicker.impl.JDatePickerImpl;
import net.sourceforge.jdatepicker.impl.JDatePanelImpl;
import net.sourceforge.jdatepicker.DateModel;
import javax.swing.JTabbedPane;
import java.awt.SystemColor;
import java.awt.Color;

public class InitTaskPanel extends InputPanel implements IPanelOperation{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private JComboBox comboboxEvluator;
	private JTextField textFieldReviewr;
	private JTextField textFieldInspector;
	public JComboBox getComboboxEvluator() {
		return comboboxEvluator;
	}



	public void setComboboxEvluator(JComboBox comboboxEvluator) {
		this.comboboxEvluator = comboboxEvluator;
	}



	public JTextField getTextFieldReviewr() {
		return textFieldReviewr;
	}



	public void setTextFieldReviewr(JTextField textFieldReviewr) {
		this.textFieldReviewr = textFieldReviewr;
	}



	public JTextField getTextFieldInspector() {
		return textFieldInspector;
	}



	public void setTextFieldInspector(JTextField textFieldInspector) {
		this.textFieldInspector = textFieldInspector;
	}



	public JComboBox getComboboxExceution() {
		return comboboxExceution;
	}



	public void setComboboxExceution(JComboBox comboboxExceution) {
		this.comboboxExceution = comboboxExceution;
	}



	public JPanel getEvluatorPanel() {
		return EvluatorPanel;
	}



	public void setEvluatorPanel(JPanel evluatorPanel) {
		EvluatorPanel = evluatorPanel;
	}



	public JTabbedPane getTabbedPane() {
		return tabbedPane;
	}



	public void setTabbedPane(JTabbedPane tabbedPane) {
		this.tabbedPane = tabbedPane;
	}



	





	public JComboBox getComboboxEXM() {
		return this.comboBoxExaminer;
	}



	


	public JComboBox getTextFieldRvrDate() {
		return this.textFieldRvrDate;
	}






	public JLabel getLabel() {
		return label;
	}



	public void setLabel(JLabel label) {
		this.label = label;
	}



	public static long getSerialversionuid() {
		return serialVersionUID;
	}



	public JPanel getReviewPanel() {
		return ReviewPanel;
	}



	public void setReviewPanel(JPanel reviewPanel) {
		ReviewPanel = reviewPanel;
	}



	public JPanel getPanelExe() {
		return panelExe;
	}



	public void setPanelExe(JPanel panelExe) {
		this.panelExe = panelExe;
	}



	public JPanel getPanelInspec() {
		return panelInspec;
	}



	public void setPanelInspec(JPanel panelInspec) {
		this.panelInspec = panelInspec;
	}



	private JComboBox comboboxExceution;
	private JPanel EvluatorPanel;
	private JTabbedPane tabbedPane;
	private JPanel ReviewPanel;
	private JPanel panelExe;
	private JPanel panelInspec;
	private JButton btnreturnToDefault;
	private JLabel label;
	private JComboBox textFieldRvrDate;
	private JComboBox comboBoxExaminer;
	private JLabel lblNumberOfDays;
	public InitTaskPanel() {
		
		JLabel lblInitTask = new JLabel("Init Task");
		lblInitTask.setBounds(448, 11, 134, 14);
		mainPanel.add(lblInitTask);
		
		JPanel panel = new JPanel();
		panel.setBounds(63, 36, 790, 332);
		mainPanel.add(panel);
		panel.setBorder(new TitledBorder(UIManager.getBorder("TitledBorder.border"), "Assign time and worker to request ", TitledBorder.LEADING, TitledBorder.TOP, null, null));
		panel.setLayout(null);
		
		tabbedPane = new JTabbedPane(JTabbedPane.TOP);
		tabbedPane.setBounds(10, 50, 770, 271);
		panel.add(tabbedPane);
		
		EvluatorPanel = new JPanel();
		tabbedPane.addTab("Evluator", null, EvluatorPanel, null);
		EvluatorPanel.setLayout(null);
		
		JLabel lblMember = new JLabel("Evaluator :");
		lblMember.setBounds(139, 89, 67, 14);
		EvluatorPanel.add(lblMember);
		
		comboboxEvluator = new JComboBox();
		comboboxEvluator.setBounds(216, 86, 129, 20);
		EvluatorPanel.add(comboboxEvluator);
		
		btnreturnToDefault = new JButton("Return To default");
		btnreturnToDefault.setBounds(365, 85, 134, 23);
		EvluatorPanel.add(btnreturnToDefault);
		
		ReviewPanel = new JPanel();
		tabbedPane.addTab("Reviewer", null, ReviewPanel, null);
		ReviewPanel.setLayout(null);
		
		JLabel lblNewLabel_4 = new JLabel("Reviewer:");
		lblNewLabel_4.setBounds(233, 62, 83, 14);
		ReviewPanel.add(lblNewLabel_4);
		
		textFieldReviewr = new JTextField();
		textFieldReviewr.setBackground(Color.DARK_GRAY);
		textFieldReviewr.setBounds(231, 87, 129, 20);
		ReviewPanel.add(textFieldReviewr);
		textFieldReviewr.setEnabled(false);
		textFieldReviewr.setEditable(false);
		textFieldReviewr.setColumns(10);
		
		label = new JLabel("");
		label.setIcon(new ImageIcon(InitTaskPanel.class.getResource("/GUI/Image/10_device_access_alarms.png")));
		label.setBounds(172, 117, 32, 39);
		ReviewPanel.add(label);
		
		textFieldRvrDate = new JComboBox();
		textFieldRvrDate.setBounds(231, 118, 129, 20);
		ReviewPanel.add(textFieldRvrDate);
		
		panelExe = new JPanel();
		tabbedPane.addTab("Execution", null, panelExe, null);
		panelExe.setLayout(null);
		
		JLabel lblNewLabel_5 = new JLabel("Execution Leader:");
		lblNewLabel_5.setBounds(160, 88, 129, 14);
		panelExe.add(lblNewLabel_5);
		
		comboboxExceution = new JComboBox();
		comboboxExceution.setBounds(283, 85, 129, 20);
		panelExe.add(comboboxExceution);
		
		panelInspec = new JPanel();
		tabbedPane.addTab("Inspector", null, panelInspec, null);
		panelInspec.setLayout(null);
		
		textFieldInspector = new JTextField();
		textFieldInspector.setBackground(Color.DARK_GRAY);
		textFieldInspector.setBounds(218, 77, 129, 20);
		panelInspec.add(textFieldInspector);
		textFieldInspector.setEditable(false);
		textFieldInspector.setEnabled(false);
		textFieldInspector.setColumns(10);
		
		JLabel lblInspector = new JLabel("Inspector:");
		lblInspector.setBounds(134, 80, 96, 14);
		panelInspec.add(lblInspector);
		
		JPanel Examiner = new JPanel();
		tabbedPane.addTab("Examiner", null, Examiner, null);
		Examiner.setLayout(null);
		
		comboBoxExaminer = new JComboBox();
		comboBoxExaminer.setBounds(180, 88, 129, 20);
		Examiner.add(comboBoxExaminer);
		
		JLabel label_1 = new JLabel("");
		label_1.setIcon(new ImageIcon(InitTaskPanel.class.getResource("/ICONS/10_device_access_add_alarm.png")));
		label_1.setBounds(122, 81, 32, 39);
		Examiner.add(label_1);
		
		lblNumberOfDays = new JLabel("Number of Days:");
		lblNumberOfDays.setBounds(180, 63, 107, 14);
		Examiner.add(lblNumberOfDays);
		
		JLabel lblNewLabel_7 = new JLabel("");
		lblNewLabel_7.setBounds(734, 11, 46, 36);
		panel.add(lblNewLabel_7);
		lblNewLabel_7.setIcon(new ImageIcon(InitTaskPanel.class.getResource("/ICONS/6_social_add_group.png")));
		
		for (int i =1 ; i<=7 ; i++){
			comboBoxExaminer.addItem(i);
			textFieldRvrDate.addItem(i);
		}
	}
	
	
	
	public JButton getBtnreturnToDefault() {
		return btnreturnToDefault;
	}



	public void setBtnreturnToDefault(JButton btnreturnToDefault) {
		this.btnreturnToDefault = btnreturnToDefault;
	}



	@Override
	public String apHelpButton() {
		return "In here the Inspecor sets initial assignments for newly created request";
	}



	@Override
	public String setTitle() {
		return "Initiate New Request";
	}
}
